/**
 * 登录
 */
export function login(data) {
	return uni.$u.http.post('daikou-admin/login', data, {});
}

/**
 * 获取登录用户信息
 */
export function getUserInfo(params) {
	return uni.$u.http.get('daikou-admin/concat/getUserInfo', {
		params
	});
}

/**
 * 上传头像
 */
export function uploadAvatar(data) {
	return uni.$u.http.upload('daikou-admin/common/updateAvatar', {
		name: 'file',
		filePath: data.filePath,
	})
}

/**
 * 获取客服电话
 */
export function getMobile(params) {
	return uni.$u.http.get('daikou-admin/concat/getMobile', {
		params
	});
}

/**
 * 修改密码发送验证码（不能传token）
 */
export function verifyCode(params) {
	return uni.$u.http.get('daikou-admin/common/verifyCode', {
		params,
		custom: {
			notoken: true
		}
	});
}

/**
 * 修改密码提交（不能传token）
 */
export function updatePwd(data) {
	return uni.$u.http.post('daikou-admin/common/updatePwd', data, {
		custom: {
			notoken: true
		}
	});
}

/**
 * 意见反馈
 */
export function doFeedBack(data) {
	return uni.$u.http.post('daikou-admin/feedback/doFeedBack', data, {});
}

/**
 * 退出登录
 */
export function logout(data) {
	return uni.$u.http.post('daikou-admin/logout', data, {});
}

/**
 * 上传头像
 */
export function upload(data) {
	return uni.$u.http.upload('daikou-admin/common/upload', {
		name: 'file',
		filePath: data.filePath,
	})
}

/**
 * 消息列表
 */
export function getMsg(params){
	return uni.$u.http.get('daikou-admin/messageUser/messageList', {params});
}

/**
 * 更新未读状态
 */
export function updateReadStatus(params){
	return uni.$u.http.get('daikou-admin/messageUser/updateReadStatus', {params});
}

/**
 * 收益明细
 */
export function getCommissionDetailInfo(params){
	return uni.$u.http.get('daikou-admin/concat/getCommissionDetailInfo', {params});
}

/**
 * 提现接口
 */
export function doWithDraw(data) {
	return uni.$u.http.post('daikou-admin/withdraw/doWithDraw', data, {});
}

/**
 * 提现记录
 */
export function getWithDrawInfo(params){
	return uni.$u.http.get('daikou-admin/withdraw/getWithDrawInfo', {params});
}